#!/usr/bin/env python3
import os

def xls2pdf(name):
    cmd = 'soffice --headless --convert-to pdf:"impress_pdf_Export" {}'.format(name)
    os.system(cmd)

if __name__ == "__main__":
    xls2pdf("invoice.xls")
